//
//  GQHMessageModel.h
//  Xanthium
//
//  Created by GuanQinghao on 20/05/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"

@interface GQHMessageModel : GQHBaseModel

/// 消息ID
@property (nonatomic, copy) NSString *qh_messageID;
/// 用户ID
@property (nonatomic, copy) NSString *qh_userID;
/// 消息查看状态(已读／未读)
@property (nonatomic, copy) NSString *qh_readState;
/// 消息已读时间
@property (nonatomic, copy) NSString *qh_readTime;
/// 消息类型Key
@property (nonatomic, copy) NSString *qh_messageTypeKey;
/// 消息内容
@property (nonatomic, copy) NSString *qh_messageContent;
/// 消息状态
@property (nonatomic, copy) NSString *qh_messageState;

/// 行高
@property (nonatomic, assign) CGFloat qh_rowHeight;


///  获取消息列表
+ (void)qh_fetchMessagesWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHMessageModel *> *messages))success failure:(void(^)(NSError *error))failure;
@end

/**
 "messageId": "402847116378a411016378c53c100074",
 "userId": "402847116378a411016378aa729a000d",
 "checkState": "01",
 "checkTime": "2018-05-19 22:19:42",
 "reserved1": null,
 "reserved2": null,
 "newsCategory": "01",
 "messageContent": "您已对苹果手机iPhoneX有新报价为4500",
 "messageState": "01",
 "line1": "报价成功",
 "line2": "山西省晋城市陵川县————吉林省白山市抚松县",
 "line3": "苹果手机iPhoneX",
 "line4": "4500",
 "phone": null,
 "connectedId": "402847116378a411016378c3eed20069",
 "optdate": "2018-05-19 22:19:42"
 
 
 "messageId": "402847116378a411016378c172e70066",
 "userId": "402847116378a411016378aa729a000d",
 "checkState": "01",
 "checkTime": "2018-05-19 22:15:33",
 "reserved1": null,
 "reserved2": null,
 "newsCategory": "02",
 "messageContent": "您的运单号为KJJTWLZX20180519201805192已确认收货",
 "messageState": "01",
 "line1": "运单完成",
 "line2": null,
 "line3": null,
 "line4": null,
 "phone": null,
 "connectedId": null,
 "optdate": "2018-05-19 22:15:33"
 
 "messageId": "297e97d7637b600e01637b646d950003",
 "userId": "402847116378a411016378aa729a000d",
 "checkState": "02",
 "checkTime": "2018-05-20 10:32:50",
 "reserved1": null,
 "reserved2": null,
 "newsCategory": "03",
 "messageContent": "水电费是",
 "messageState": "01",
 "line1": null,
 "line2": null,
 "line3": null,
 "line4": null,
 "phone": null,
 "connectedId": null,
 "optdate": "2018-05-20 10:32:50"
 
 "messageId": "402847116378a411016378b150a6001d",
 "userId": "402847116378a411016378aa729a000d",
 "checkState": "01",
 "checkTime": "2018-05-19 21:57:56",
 "reserved1": null,
 "reserved2": null,
 "newsCategory": "04",
 "messageContent": "您有新货源消息,起始地江苏省淮安市洪泽区目的地江苏省镇江市扬中市请注意查收",
 "messageState": "01",
 "line1": "江苏省淮安市洪泽区————江苏省镇江市扬中市",
 "line2": "Macbook pro 厢式挂车/18米",
 "line3": "装货时间：2018-05-21 21:48:30",
 "line4": "联系人：15102966484",
 "phone": "15102966484",
 "connectedId": null,
 "optdate": "2018-05-19 21:57:56"
 
 */
